MICROSOFT AZURE CERTIFICATION Exam AZ-220 Questions V11.02 Microsoft Azure certification Topics - Microsoft Azure IoT Developer Free Microsoft AZ-220 Demo PDF [2022] Check AZ-220 Exam Questions First 1.Topic 1, Contoso Case Study This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case . However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided. To answer the questions included in a case study, you will need to reference information that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in the case study. Each question is independent of the other question on this case study. At the end of this case study, a review screen will appear. This screen allows you to review your answers and to make changes before you move to the next sections of the exam. After you begin a new section, you cannot return to this section. To start the case study To display the first question on this case study, click the Next button. Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements, existing environment, and problem statements. If the case study has an All Information tab, note that the information displayed is identical to the information displayed on the subsequent tabs. When you are ready to answer a question, click the Question button to return to the question. Existing Environment. Current State of Development Contoso produces a set of Bluetooth sensors that read the temperature and humidity. The sensors connect to IoT gateway devices that relay the data. All the IoT gateway devices connect to an Azure IoT hub named iothub1. Existing Environment. Device Twin You plan to implement device twins by using the following JSON sample. Free Microsoft AZ-220 Demo PDF [2022] Check AZ-220 Exam Questions First Free Microsoft AZ-220 Demo PDF [2022] Check AZ-220 Exam Questions First Existing Environment. Azure Stream Analytics Each room will have between three to five sensors that will generate readings that are sent to a single IoT gateway device. The IoT gateway device will forward all the readings to iothub1 at intervals of between 10 and 60 seconds. You plan to use a gateway pattern so that each IoT gateway device will have its own IoT Hub device identity. You draft the following query, which is missing the GROUP BY clause. SELECT AVG(temperature), System.TimeStamp() AS AsaTime FROM Iothub You plan to use a 30-second period to calculate the average temperature reading of the sensors. You plan to minimize latency between the condition reported by the sensors and the corresponding alert issued by the Stream Analytics job. Existing Environment. Device Messages The IoT gateway devices will send messages that contain the following JSON data whenever the temperature exceeds a specified threshold. The level property will be used to route the messages to an Azure Service Bus queue endpoint named criticalep. Free Microsoft AZ-220 Demo PDF [2022] Check AZ-220 Exam Questions First Existing Environment. Issues You discover connectivity issues between the IoT gateway devices and iothub1, which cause IoT devices to lose connectivity and messages. Requirements. Planning Changes Contoso plans to make the following changes: - Use Stream Analytics to process and view data. - Use Azure Time Series Insights to visualize data. - Implement a system to sync device statuses and required settings. - Add extra information to messages by using message enrichment. - Create a notification system to send an alert if a condition exceeds a specified threshold. - Implement a system to identify what causes the intermittent connection issues and lost messages. Requirements. Technical Requirements Contoso must meet the following requirements: - Use the built-in functions of IoT Hub whenever possible. - Minimize hardware and software costs whenever possible. - Minimize administrative effort to provision devices at scale. - Implement a system to trace message flow to and from iothub1. - Minimize the amount of custom coding required to implement the planned changes. - Prevent read operations from being negatively affected when you implement additional services. You need to recommend a solution to keep device properties synced to IoT Hub. The solution must minimize data loss caused by the connectivity issues. What should you include in the recommendation? A. Azure Event Grid B. a cloud-to-device message C. loT Hub device twins D. the loT Hub direct method Answer: C Explanation: Scenario: You discover connectivity issues between the IoT gateway devices and iothub1, which cause IoT devices to lose connectivity and messages. To synchronize state information between a device and an IoT hub, you use device twins. A device twin is a JSON document, associated with a specific device, and stored by IoT Hub in the cloud where you can query them. A device twin contains desired properties, reported properties, and tags. Reference: https://docs.microsoft.com/en-us/azure/iot-hub/tutorial-device-twins Free Microsoft AZ-220 Demo PDF [2022] Check AZ-220 Exam Questions First 2. HOTSPOT You are writing code to provision IoT devices by using the Device Provisioning Service. Which two details from the Overview blade of the Device Provisioning Service are required to provision a new IoT client device? To answer, select the appropriate detail in the answer area. NOTE: Each correct selection is worth one point. Answer: Free Microsoft AZ-220 Demo PDF [2022] Check AZ-220 Exam Questions First Explanation: Box 1: ID Scope In the Azure portal, select the Overview blade for your Device Provisioning service and copy the ID Scope value. The ID Scope is generated by the service and guarantees uniqueness. It is immutable and used to uniquely identify the registration IDs. Box 2: Global device endpoint The global_prov_uri variable, which allows the IoT Hub client registration API IoTHubClient_LL_CreateFromDeviceAuth to connect with the designated Device Provisioning Service instance. Example code: static const char* global_prov_uri = "global.azure-devices-provisioning.net"; static const char* id_scope = "[ID Scope]"; 3. What should you do to identify the cause of the connectivity issues? A. Send cloud-to-device messages to the IoT devices. B. Use the heartbeat pattern to send messages from the IoT devices to iothub1. C. Monitor the connection status of the device twin by using an Azure function. D. Enable the collection of the Connections diagnostics logs and set up alerts for the connected devices count metric. Answer: D Explanation: Scenario: You discover connectivity issues between the IoT gateway devices and iothub1, which cause IoT devices to lose connectivity and messages. To log device connection events and errors, turn on diagnostics for IoT Hub. We recommend turning on these logs as early as possible, because if diagnostic logs aren't enabled, when device disconnects occur, you won't have any information to troubleshoot the problem with. Step 1: 4. Sign in to the Azure portal. 5. Browse to your IoT hub. 6. Select Diagnostics settings. 7. Select Turn on diagnostics. 8. Enable Connections logs to be collected. 9. For easier analysis, turn on Send to Log Analytics (see pricing). Step 2: Free Microsoft AZ-220 Demo PDF [2022] Check AZ-220 Exam Questions First Set up alerts for device disconnect at scale To get alerts when devices disconnect, configure alerts on the Connected devices (preview) metric. Reference: https://docs.microsoft.com/bs-cyrl-ba/azure/iot-hub/iot-hub-troubleshoot- connectivity 10. HOTSPOT You need to use message enrichment to add additional device information to messages sent from the IoT gateway devices when the reported temperature exceeds a critical threshold. How should you configure the enrich message values? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Answer: Free Microsoft AZ-220 Demo PDF [2022] Check AZ-220 Exam Questions First 11. How should you complete the GROUP BY clause to meet the Streaming Analytics requirements? A. GROUP BY HoppingWindow(Second, 60, 30) B. GROUP BY TumblingWindow(Second, 30) C. GROUP BY SlidingWindow(Second, 30) D. GROUP BY SessionWindow(Second, 30, 60) Answer: B Explanation: Scenario: You plan to use a 30-second period to calculate the average temperature reading of the sensors. Tumbling window functions are used to segment a data stream into distinct time segments and perform a function against them, such as the example below. The key differentiators of a Tumbling window are that they repeat, do not overlap, and an event cannot belong to more than one tumbling window. InAnswers: A: Hopping window functions hop forward in time by a fixed period. It may be easy to think of them as Tumbling windows that can overlap, so events can belong to more than one Hopping window result set. Reference: https://docs.microsoft.com/en-us/azure/stream-analytics/stream-analytics- window-functions 12. HOTSPOT Free Microsoft AZ-220 Demo PDF [2022] Check AZ-220 Exam Questions First You create a new IoT device named device1 on iothub1. Device1 has a primary key of Uihuih76hbHb. How should you complete the device connection string? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Answer: Explanation: Box 1: iothub1 The Azure IoT hub is named iothub1. Box 2: azure-devices.net The format of the device connection string looks like: HostName={YourIoTHubName}.azure- devices.net; DeviceId=MyNodeDevice;SharedAccessKey={YourSharedAccessKey} Box 1: device1 Device1 has a primary key of Uihuih76hbHb. 13. You plan to deploy Azure Time Series Insights. What should you create on iothub1 before you deploy Time Series Insights? A. a new message route B. a new consumer group C. a new shared access policy D. an IP filter rule Answer: B Explanation: Create a dedicated consumer group in the IoT hub for the Time Series Insights environment to consume from. Each Time Series Insights event source must have its own dedicated consumer group that isn't shared with any other consumer. If multiple Free Microsoft AZ-220 Demo PDF [2022] Check AZ-220 Exam Questions First readers consume events from the same consumer group, all readers are likely to exhibit failures. Reference: https://docs.microsoft.com/en-us/azure/time-series-insights/time-series- insights-how-to-add-an-event-source- iothub 14. You need to enable telemetry message tracing through the entire IoT solution. What should you do? A. Monitor device lifecycle events. B. Upload IoT device logs by using the File upload feature. C. Enable the DeviceTelemetry diagnostic log and stream the log data to an Azure event hub. D. Implement distributed tracing. Answer: D Explanation: IoT Hub is one of the first Azure services to support distributed tracing. As more Azure services support distributed tracing, you'll be able trace IoT messages throughout the Azure services involved in your solution. Note: Enabling distributed tracing for IoT Hub gives you the ability to: Precisely monitor the flow of each message through IoT Hub using trace context. This trace context includes correlation IDs that allow you to correlate events from one component with events from another component. It can be applied for a subset or all IoT device messages using device twin. Automatically log the trace context to Azure Monitor diagnostic logs. Measure and understand message flow and latency from devices to IoT Hub and routing endpoints. Start considering how you want to implement distributed tracing for the non-Azure services in your IoT solution. Reference: https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-distributed-tracing 15. Topic 2, ADatum Case Study This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case . However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided. To answer the questions included in a case study, you will need to reference information that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in Free Microsoft AZ-220 Demo PDF [2022] Check AZ-220 Exam Questions First the case study. Each question is independent of the other question on this case study. At the end of this case study, a review screen will appear. This screen allows you to review your answers and to make changes before you move to the next sections of the exam. After you begin a new section, you cannot return to this section. To start the case study To display the first question on this case study, click the Next button. Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements, existing environment, and problem statements. If the case study has an All Information tab, note that the information displayed is identical to the information displayed on the subsequent tabs. When you are ready to answer a question, click the Question button to return to the question. Requirements. Planned Changes ADatum is developing an Azure IoT solution to monitor environmental conditions. The IoT solution consists of hardware devices and cloud services. All the devices will communicate directly to Azure IoT Hub. The hardware devices will be deployed to the branch offices and will collect data about various environmental conditions such as temperature, humidity, air quality, and noise level. The devices will be wired by using Power over Ethernet (PoE) connections. ADatum is developing the solution in the following three phases: proof of value (POV), pilot, and production. Requirements. POV Requirements The POV phase will demonstrate that a technical solution is viable. During this phase, 100 devices will be deployed to the main office and Azure Stream Analytics will be connected to an IoT hub to generate real-time alerts. Stream Analytics will perform the following processing: - Calculate the median rate of the telemetry across the entire devices that exceed the median rate by a factor of 4. - Compare the current telemetry to the specified thresholds and issue alerts when telemetry values are out of range. - Ensure that all message content during this phase is human readable to simplify debugging. Requirements. Pilot Requirements During the pilot phase, devices will be deployed to 10 offices. Each office will have up Free Microsoft AZ-220 Demo PDF [2022] Check AZ-220 Exam Questions First to 1,000 devices. During this phase, you will add Azure Time Series Insights in parallel to Stream Analytics to support real-time graphs and queries in a dashboard web app. The pilot deployment must minimize operating costs. Requirements. Production Requirements The production phase will include all the offices. The production deployment will have one IoT hub in each Azure region. Devices must connect to the IoT hub in their region. The production phase must meet the following requirements: - Ensure that the IoT solution can support performance and scale targets. - Ensure that the IoT solution support up to 1,000 devices per office. - Minimize operating costs of the IoT solution. Requirements. Technical Requirements Datum identifies the following requirements for the planned IoT solution: - The solution must generate real-time alerts when a fire condition is detected in an office. All the devices in that office must trigger an audible alarm siren within 10 seconds of the alert. - A dashboard UI must display alerts and the system status in real time and must allow device operators to make adjustments to the system. - Each device will send hourly updates to IoT Hub. Condition alerts will be sent immediately. - Multiple types of devices will collect telemetry that has different schemas. - IoT Hub must perform message routing based on the message body. - Direct methods must be used for cloud-to-device communication. - Reports must be provided monthly, quarterly, and annually. - Stored data queries must be as efficient as possible. - The device message size will be under 4 KB. - Development effort must be minimized. Requirements. Throttle and Quotas The relevant throttles and quotas for various IoT Hub tiers are shown in the following table. Free Microsoft AZ-220 Demo PDF [2022] Check AZ-220 Exam Questions First Requirements. IoT Hub Routing You plan to implement IoT Hub routing during the POV phase as shown in the following exhibit. During the POV phase, telemetry from IoT Hub stops flowing to the hot path. The cold path continues to work. What should you do to restore the hot path? A. Disable the fallback route. B. Run the Test all routes action. C. Create an explicit route for the hot path. D. Modify cold-route to send only some telemetry data to the cold path. Answer: C 16. DRAG DROP You need to add Time Series Insights to the solution to meet the pilot requirements. Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the Free Microsoft AZ-220 Demo PDF [2022] Check AZ-220 Exam Questions First correct order. Answer: Explanation: Step 1: Provision Time Series Insights Select Provision new IoT Hub to create a new IoT hub. Step 2: Route telemetry from IoT Hub to a custom event. Step 3: Add a data access policy to Time Series Insights for the dashboard web app Scenario: Requirements. Pilot Requirements During the pilot phase, devices will be deployed to 10 offices. Each office will have up to 1,000 devices. During this phase, you will add Azure Time Series Insights in parallel to Stream Free Microsoft AZ-220 Demo PDF [2022] Check AZ-220 Exam Questions First Analytics to support real-time graphs and queries in a dashboard web app. The pilot deployment must minimize operating costs. 17. You need to recommend the format of telemetry messages to meet the POV requirements. What should you recommend? A. XML B. Avro C. JSON Answer: C Explanation: Scenario: POV Requirements Ensure that all message content during this phase is human readable to simplify debugging. Avro uses a binary format, so it is not human readable. The more lightweight JSON (Javascript object notation) has become a popular alternative to XML for various reasons. A couple obvious ones are: Less verbose- XML uses more words than necessary JSON is faster- Parsing XML software is slow and cumbersome. Reference: https://blog.cloud-elements.com/json-better-xml 18. During the POV phase, you connect a device to IoT Hub and start sending telemetry messages. You need to verify the content of the messages received by IoT Hub during the POV phase. What should you use? A. the Monitoring settings of loT Hub or a Postman call to the loT Hub REST API B. Azure Monitor or Azure Log Analytics C. Microsoft Visual Studio Code that uses the loT Hub Toolkit or Azure CLI that uses the loT Hub extension D. Splunk or Grafana Answer: B Explanation: Reference: https://docs.microsoft.com/en-us/azure/iot-hub/tutorial-use-metrics-and- diags 19. You need to configure Stream Analytics to meet the POV requirements. What are two ways to achieve the goal? Each Answer presents a complete solution. NOTE: Each correct selection is worth one point. Free Microsoft AZ-220 Demo PDF [2022] Check AZ-220 Exam Questions First A. From IoT Hub, create a custom event hub endpoint, and then configure the endpoint as an input to Stream Analytics. B. Create a Stream Analytics module, and then deploy the module to all IoT Edge devices in the fleet. C. Create an input in Stream Analytics that uses the built-in events endpoint of IoT Hub as the source. D. Route telemetry to an Azure Blob storage custom endpoint, and then configure the Blob storage as a reference input for Stream Analytics. Answer: A,C 20. You need to store the real-time alerts generated by Stream Analytics to meet the technical requirements. Which type of Stream Analytics output should you configure? A. Azure Blob storage B. Microsoft Power BI C. Azure Cosmos DB D. Azure SQL Database Answer: A Explanation: When you create a Time Series Insights Preview pay-as-you-go (PAYG) SKU environment, you create two Azure resources: An Azure Storage general-purpose V1 blob account for cold data storage. An Azure Time Series Insights Preview environment that can be configured for warm data storage. Reference: https://docs.microsoft.com/en-us/azure/time-series-insights/time-series- insights-update-storage-ingress 21. Topic 3, Misc. Questions Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this question, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You have an Azure IoT solution that includes an Azure IoT hub, a Device Provisioning Service instance, and 1,000 connected IoT devices. All the IoT devices are provisioned automatically by using one enrollment group. You need to temporarily disable the IoT devices from the connecting to the IoT hub. Solution: From the IoT hub, you change the credentials for the shared access policy of the IoT devices. Does the solution meet the goal? Free Microsoft AZ-220 Demo PDF [2022] Check AZ-220 Exam Questions First A. Yes B. No Answer: B Explanation: Reference: https://docs.microsoft.com/bs-latn-ba/azure/iot-dps/how-to-unprovision- devices 22. DRAG DROP You have an Azure IoT Central application that includes a Device Provisioning Service instance. You need to connect IoT devices to the application without first registering the devices. In which order should you perform the actions? To answer, move all actions from the list of actions to the answer area and arrange them in the correct order. Answer: Free Microsoft AZ-220 Demo PDF [2022] Check AZ-220 Exam Questions First Explanation: Step: With DPS (Device Provisioning Service) you can generate device credentials and configure the devices offline without registering the devices through IoT Central UI. Connect devices that use SAS tokens without registering 23. Copy the IoT Central application's group primary key 24. Use the dps-keygen tool to generate the device SAS keys. Use the group primary key from the previous step. The device IDs must be lower-case: dps-keygen -mk:<group primary key> -di:<device ID> 25. The OEM flashes each device with a device ID, a generated device SAS key, and the application ID scope value. 26. When you switch on a device, it first connects to DPS to retrieve its IoT Central registration information. The device initially has a device status Unassociated on the Devices page and isn't assigned to a device template. On the Devices page, Migrate the device to the appropriate device template. Device provisioning is now complete, the device status is now Provisioned, and the device can start sending data. On the Administration > Device connection page, the Auto approve option controls whether you need to manually approve the device before it can start sending data. 27. You have an Azure IoT hub that is being taken from prototype to production. Free Microsoft AZ-220 Demo PDF [2022] Check AZ-220 Exam Questions First You plan to connect IoT devices to the IoT hub. The devices have hardware security modules (HSMs). You need to use the most secure authentication method between the devices and the IoT hub. Company policy prohibits the use of internally generated certificates. Which authentication method should you use? A. an X.509 self-signed certificate B. a certificate thumbprint C. a symmetric key D. An X.509 certificate signed by a root certification authority (CA). Answer: D Explanation: Purchase X.509 certificates from a root certificate authority (CA). This method is recommended for production environments. The hardware security module, or HSM, is used for secure, hardware-based storage of device secrets, and is the most secure form of secret storage. Both X.509 certificates and SAS tokens can be stored in the HSM Reference: https://docs.microsoft.com/en-us/azure/iot-dps/concepts-security 28. Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You have an Azure Stream Analytics job that receives input from an Azure IoT hub and sends the outputs to Azure Blob storage. The job has compatibility level 1.1 and six streaming units. You have the following query for the job. You plan to increase the streaming unit count to 12. You need to optimize the job to take advantage of the additional streaming units and increase the throughput. Solution: You change the compatibility level of the job to 1.2. Does this meet the goal? A. Yes B. No